<?php
	header("Content-type:text/html;charset=utf-8");
  $appid = 'wx688889203f78f01a';
  $secret = '49e9f20c35f2b66dd407bb844fc84977';
        //用户实际访问的网址
  $redirect_url='http://www.web03.cn/wx/auth/index.php';
  //授权网址
  $url='https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$appid.'&redirect_uri='.urlencode($redirect_url).'&response_type=code&scope=snsapi_base
&state=STATE#wechat_redirect';
	echo '<br>-------<br>';
	echo $url,'<br/>------------------<br>';
	print_r($_GET);


?>